<?php
/**
 * Created by cmb_weixin.master.
 * File: ProductOrderTransfer.php
 * User: xuewl
 * Date: 2017/12/20
 * Time: 04:23
 */

namespace app\product\model;
use app\common\library\Model;

class ProductOrderTransfer extends Model
{
    public function orderInfo() {
        return $this->hasOne('app\\product\\model\\ProductOrder', 'sn', 'order_sn');
    }

    public function toUserInfo() {
        return $this->hasOne('app\\user\\model\\User', 'id', 'touid');
    }

    public function formUserInfo() {
        return $this->hasOne('app\\user\\model\\User', 'id', 'formuid');
    }

}
